<template>
  <div class="home">12
    <button @click="but">点击</button>
  </div>
</template>

<script>
// @ is an alias to /src
export default {
  name: 'Home',
  components: {
  },
  created  () {
    
  },
  methods: {
    but: function () {
      console.log(this.$http)
      this.$http.post('http://127.0.0.1:3000/html',{a:1},false).then(res=>{
        console.log(1,res)
      })
    }
  }
}
</script>
